package com.zhj.psi.core.config;

/**
 * Created by zhuhuijun on 2017/9/4 22:10
 */
//@Configuration
public class H2ServerConfig {
//    // TCP port for remote connections, default 9092
//    @Value("${h2.tcp.port:9092}")
//    private String h2TcpPort;
//
//    // Web port, default 8082
//    @Value("${h2.web.port:8082}")
//    private String h2WebPort;
//    @Bean
//    @ConditionalOnExpression("${h2.tcp.enabled:true}")
//    public Server h2TcpServer() throws SQLException {
//        return Server.createTcpServer("-tcp", "-tcpAllowOthers", "-tcpPort", h2TcpPort).start();
//    }
//
//    @Bean
//    @ConditionalOnExpression("${h2.web.enabled:false}")
//    public Server h2WebServer() throws SQLException {
//        return Server.createWebServer("-web", "-webAllowOthers", "-webPort", h2WebPort).start();
//    }

}
